package com.xlserver.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xlserver.domain.ScheduleAdjust;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Mapper
public interface ScheduleAdjustMapper extends BaseMapper<ScheduleAdjust> {
    @Select("select id from schedule_adjust where adjustTime = #{date} and adjustType = 1")
    List<Integer> selectByDate(Date date);

    @Select("select Max(adjustId) as aid from schedule_adjust")
    Integer selectMaxId();
}
